package com.system.manager.modules.authorized.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统菜单表
 * </p>
 *
 * @author yxp
 * @since 2021-10-18
 */
@Getter
@Setter
@Entity
@ApiModel(value="SysMenu对象", description="系统菜单表")
@Table(name = "system_menu")
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    // 复合主键要用这个注解
    @EmbeddedId
    private MenuKey key;

    @ApiModelProperty(value = "父ID")
    private Long pid;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "链接打开方式")
    private String target;

    @ApiModelProperty(value = "菜单排序")
    private Integer sort;

    @ApiModelProperty(value = "状态(0:禁用,1:启用)")
    private Boolean status;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private Date createAt;

    @ApiModelProperty(value = "更新时间")
    private Date updateAt;

    @ApiModelProperty(value = "删除时间")
    private Date deleteAt;


}
